<?php

namespace app\cps\validate;

use think\Validate;
use app\common\Error;

class Login extends Validate
{
    protected $rule = [
        'username' => 'require',
        'password' => 'require',
        'official_account_id' => 'require',
    ];

    protected $message = [
        'username.require' => Error::USERNAME_NOT_EXIXTS,
        'password.require' => Error::PASSWORD_NOT_EXIXTS,
        'official_account_id.require' => Error::OFFICIAL_ACCOUNT_ID_NOT_EXIXTS,
    ];

    protected $scene = [
        'login' => ['username', 'password'],
        'update_official_account' => ['official_account_id']
    ];
}